import {
    request
} from "./request";
import qs from "qs";

//  添加品牌商
export function addbrand(obj) {
    return request({
        url: "ScBrand/addBrand",
        method: "post",
        data: obj
    });
}
//  获取品牌商
export function getbrand(obj) {
    return request({
        url: "ScBrand/getBrandList",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 品牌下架
export function disablebrand(obj) {
    return request({
        url: "ScBrand/updateBrandStatus",
        method: "post",
        data: qs.stringify(obj)
    });
}
//品牌上架
export function enablebrand(obj) {
    return request({
        url: "ScBrand/updateBrandStatus",
        method: "post",
        data: qs.stringify(obj)
    });
}
//品牌修改
export function updatebrand(obj) {
    return request({
        url: "ScBrand/updateBrandName",
        method: "post",
        data: qs.stringify(obj)
    });
}